cmake_minimum_required(VERSION 3.10)
project(dsp C)

set(CMAKE_C_STANDARD 11)

set(WORKSPACE_HOME E:/V101)

add_compile_definitions("__TMS320C28XX_FPU32__")

file(GLOB_RECURSE source "./*.c"
#        "${WORKSPACE_HOME}/DSP2833x_headers/*.*"
#        "${WORKSPACE_HOME}/DSP2833x_common/*.*"
)


include_directories(.
        ${WORKSPACE_HOME}/arch/arm/include
        ${WORKSPACE_HOME}/include
        ${WORKSPACE_HOME}/DSP2833x_headers/include
        ${WORKSPACE_HOME}/DSP2833x_common/include
        C:/ti/ccs1240/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include
        user
        app/LEDS
        app/timer
        app/uart
        app/key
        app/adc
        app/buzzer
        app/AIC32
        app/xintf
        app/dma
        app/IIR
        app/smg
        libraries/fpu/include
        Matlab
)

add_executable(dsp ${source})